package com.dddd.blog.api.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 用户情况统计表
 * </p>
 *
 * @author dddd
 * @since 2022-02-27
 */
@TableName("ums_user_statistic")
@ApiModel(value = "UserStatistic对象", description = "用户情况统计表")
@Data
public class UserStatistic implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("创作文章数")
    private Integer postCount;

    @ApiModelProperty("粉丝数")
    private Integer fansCount;

    @ApiModelProperty("关注数")
    private Integer followsCount;

    @ApiModelProperty("评论数")
    private Integer commentCount;

    @ApiModelProperty("收藏文章数")
    private Integer collectsCount;

    @ApiModelProperty("登录次数")
    private Integer loginCount;

    @Override
    public String toString() {
        return "UserStatistic{" +
            "id=" + id +
            ", userId=" + userId +
            ", postCount=" + postCount +
            ", fansCount=" + fansCount +
            ", followsCount=" + followsCount +
            ", commentCount=" + commentCount +
            ", collectsCount=" + collectsCount +
            ", loginCount=" + loginCount +
        "}";
    }
}
